﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing;
using IMCOM.Imagiality.Core;
using IMCOM.Imagiality.ImageProcessing.Canvas2D;
using IMCOM.Imagiality.ImageProcessing.Contrast;
using IMCOM.Imagiality.ImageProcessing.Canvas2D.AutoContrast;

namespace IMCOM.Imagiality.ImageProcessing.UserTest
{
    class Program
    {
        public static void ContrastInspectorTest()
        {
            AutoContrastCalculator calculator = new Canvas2DAutoContrastCalculator();
            GenericImage testImage = new GenericImage(IMCOM.Imagiality.ImageProcessing.UserTest.Properties.Resources.sample_image);
            AutoContrastValue value = calculator.Calculate(testImage);
        }


        public static void TestCanvas2DImageProcessor()
        {
            Canvas2DImageProcessor canvas2DImageProcessor = new Canvas2DImageProcessor();
            GenericImage testImage = new GenericImage(IMCOM.Imagiality.ImageProcessing.UserTest.Properties.Resources.sample_image);
            Console.WriteLine(testImage.RegionOfInterest.X);
            Console.WriteLine(testImage.RegionOfInterest.Y);
            GenericImage processedImage = canvas2DImageProcessor.getProcessedImage(testImage);
            Console.WriteLine(processedImage.RegionOfInterest.Size);
            Console.WriteLine(processedImage.RegionOfInterest.X);
            Console.WriteLine(processedImage.RegionOfInterest.Y);
            Console.ReadLine();
        }

        public static void Main()
        {
         //   TestCanvas2DImageProcessor();
            ContrastInspectorTest();
        }

    }
}
